w=int(input())
n=w
count=0
r=1
while r<=w:
    if n%r==0:
        count+=1
        print(r,'*',int(n/r),'=',w,end=' ,')
        if count%4==0:
            print()
    r+=1
print()